package com.mnsq.common.bean.entity.category;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.mnsq.common.bean.entity.CommonEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author 周俭
 */
@Data
@Entity
@JsonInclude(JsonInclude.Include.NON_NULL)
@Accessors(chain = true)
@Table(name = "c_type")
public class Type extends CommonEntity {
    private static final long serialVersionUID = -8849101159100684166L;
    /**
     * 类型名称
     */
    @Column(name = "cn_name")
    private String cnName;
    /**
     * 类型名称
     */
    @Column(name = "en_name")
    private String enName;
    /**
     * 类型编码，2位
     */
    private String code;
    /**
     * 父节点ID
     */
    @Column(name = "p_id")
    private String pId;
}
